/***********************************
* Name: AsmPlain.java
* Date: Oct 18, 2010
* @author martin
* Description:
***********************************/

package asmCodeGen;

public class CodePlain implements AsmCode{

    private String code;
    private boolean tab;

    /***********************************
     * constructor
     * @param code
     ***********************************/
    public CodePlain(String code){
        this.code = code;
        this.tab = false;
    }

    /***********************************
     * constructor
     * @param code
     ***********************************/
    public CodePlain(String code, boolean tab){
        this.code = code;
        this.tab = tab;
    }

    /***********************************
     * @return the code
     ***********************************/
    public String getCode() {
        return ((tab)?"\t":"")+code;
    }
    
}
